package com.mo.lib.constans

import com.chad.library.adapter.base.entity.MultiItemEntity
import com.mo.lib.utils.data.PinYinUtil
import com.mo.lib.utils.data.SortUtli

/**
 * @ author：mo
 * @ data：2022/10/17:13:48
 * @ 功能：
 */
class CityBean(val name: String, val center: String, override var itemType: Int = 0): MultiItemEntity {
    var pinyin: String = ""
    val topc: String
        get() {
            return pinyin.substring(0, 1).toUpperCase()
        }

    init {
        pinyin = if (name.substring(0, 1).contains("长")) {
            "chang"
        } else if (name.substring(0, 1).contains("重")) {
            "chong"
        } else {
            PinYinUtil.getPinYin(name.substring(0, 1))
        }

    }

}

val citySortList: MutableList<CityBean>
    get() {
        return  SortUtli.CitySort(citysList)
    }
val citysList: MutableList<CityBean>
    get() {
        return arrayListOf<CityBean>(
            CityBean("洛阳市", "112.453895,34.619702"), //河南
            CityBean("三门峡市", "111.200482,34.773196"),
            CityBean("漯河市", "114.0166,33.58038"),
            CityBean("许昌市", "113.852004,34.03732"),
            CityBean("南阳市", "112.528549,32.990218"),
            CityBean("信阳市", "114.091058,32.148624"),
            CityBean("焦作市", "113.241902,35.215726"),
            CityBean("新乡市", "113.92679,35.303589"),
            CityBean("平顶山市", "113.192595,33.766554"),
            CityBean("驻马店市", "114.021988,33.014038"),
            CityBean("周口市", "114.701222,33.634652"),
            CityBean("郑州市", "113.625351,34.746303"),
            CityBean("安阳市", "114.39248,36.098779"),
            CityBean("鹤壁市", "114.297305,35.748329"),
            CityBean("濮阳市", "115.029246,35.762731"),
            CityBean("商丘市   ", "115.656358,34.415165"),
            CityBean("开封市", "114.314278,34.798083"),
            CityBean("济源市", "112.602347,35.069057"),
            CityBean("汕头市", "116.681956,23.354152"), //广东
            CityBean("佛山市", "113.121586,23.021351"),
            CityBean("肇庆市", "112.465245,23.047747"),
            CityBean("惠州市", "114.415587,23.112368"),
            CityBean("深圳市", "114.057939,22.543527"),
            CityBean("珠海市", "113.576892,22.271644"),
            CityBean("湛江市", "110.357538,21.270108"),
            CityBean("江门市", "113.081548,22.578948"),
            CityBean("阳江市", "111.98343,21.856853"),
            CityBean("茂名市", "110.925533,21.662728"),
            CityBean("汕尾市", "115.375557,22.787204"),
            CityBean("云浮市", "112.044524,22.915163"),
            CityBean("河源市", "114.700215,23.744276"),
            CityBean("潮州市", "116.621901,23.657662"),
            CityBean("揭阳市", "116.372732,23.550968"),
            CityBean("韶关市", "113.597324,24.810977"),
            CityBean("梅州市", "116.122046,24.288832"),
            CityBean("广州市", "113.264499,23.130061"),
            CityBean("清远市", "113.056098,23.682064"),
            CityBean("东莞市", "113.751884,23.021016"),
            CityBean("中山市", "113.392517,22.517024"),
            CityBean("乌海市", "106.79415,39.655048"), //内蒙古自治区
            CityBean("巴彦淖尔市", "107.387767,40.742987"),
            CityBean("包头市", "109.95315,40.621327"),
            CityBean("呼伦贝尔市", "119.77845,49.166536"),
            CityBean("阿拉善盟", "105.729135,38.851554"),
            CityBean("兴安盟", "122.037796,46.082373"),
            CityBean("呼和浩特市", "111.748814,40.842127"),
            CityBean("乌兰察布市", "113.132227,40.994526"),
            CityBean("鄂尔多斯市", "109.782473,39.608744"),
            CityBean("锡林郭勒盟", "116.047387,43.933212"),
            CityBean("通辽市", "122.243309,43.653566"),
            CityBean("赤峰市", "118.887613,42.256876"),
            CityBean("大兴安岭地区", "124.11786,50.41129"), //黑龙江省
            CityBean("七台河市", "131.003015,45.771178"),
            CityBean("鹤岗市", "130.297687,47.350659"),
            CityBean("哈尔滨市", "126.53505,45.802981"),
            CityBean("佳木斯市", "130.318916,46.800002"),
            CityBean("双鸭山市", "131.141563,46.676157"),
            CityBean("黑河市", "127.528226,50.244887"),
            CityBean("牡丹江市", "129.632928,44.551486"),
            CityBean("齐齐哈尔市", "123.918193,47.354892"),
            CityBean("鸡西市", "130.969385,45.295087"),
            CityBean("绥化市", "126.968714,46.654147"),
            CityBean("伊春市", "128.840863,47.728332"),
            CityBean("大庆市", "125.104078,46.589498"),
            CityBean("北屯市", "87.834419,47.326733"), //新疆维吾尔自治区
            CityBean("双河市", "82.35365587,44.84052409"),
            CityBean("铁门关市", "85.670291,41.862997"),
            CityBean("博尔塔拉蒙古自治州", "82.066363,44.906039"),
            CityBean("可克达拉市", "80.994153,43.940381"),
            CityBean("塔城地区", "82.980316,46.745364"),
            CityBean("和田地区", "79.921646,37.114406"),
            CityBean("昆玉市", "79.270193,37.215372"),
            CityBean("石河子市", "86.080397,44.305368"),
            CityBean("阿勒泰地区", "88.141253,47.844924"),
            CityBean("昌吉回族自治州", "87.308995,44.011044"),
            CityBean("五家渠市", "87.542852,44.166489"),
            CityBean("巴音郭楞蒙古自治州", "86.145298,41.764115"),
            CityBean("伊犁哈萨克自治州", "81.323691,43.917106"),
            CityBean("阿拉尔市", "81.280532,40.547205"),
            CityBean("克孜勒苏柯尔克孜自治州", "76.167327,39.714734"),
            CityBean("喀什地区", "75.989746,39.470492"),
            CityBean("克拉玛依市", "84.889239,45.577712"),
            CityBean("吐鲁番市", "89.190374,42.950736"),
            CityBean("乌鲁木齐市", "87.616824,43.825377"),
            CityBean("胡杨河市", "84.827592,44.692894"),
            CityBean("哈密市", "93.515053,42.819346"),
            CityBean("新星市", "93.74831,42.797043"),
            CityBean("图木舒克市", "79.074965,39.867776"),
            CityBean("阿克苏地区", "80.265068,41.170712"),
            CityBean("宜昌市", "111.286962,30.69217"), //湖北省
            CityBean("十堰市", "110.798921,32.629057"),
            CityBean("襄阳市", "112.121743,32.010161"),
            CityBean("武汉市", "114.304569,30.593354"),
            CityBean("黄冈市", "114.872425,30.453722"),
            CityBean("天门市", "113.166545,30.663706"),
            CityBean("潜江市", "112.900279,30.401954"),
            CityBean("孝感市", "113.956962,30.918311"),
            CityBean("荆门市", "112.199009,31.035445"),
            CityBean("恩施土家族苗族自治州", "109.488076,30.272104"),
            CityBean("仙桃市", "113.442973,30.328407"),
            CityBean("荆州市", "112.24143,30.336282"),
            CityBean("咸宁市", "114.322601,29.84135"),
            CityBean("神农架林区", "110.675879,31.745103"),
            CityBean("随州市", "113.382324,31.690275"),
            CityBean("黄石市", "115.038999,30.201082"),
            CityBean("鄂州市", "114.894909,30.391461"),
            CityBean("葫芦岛市", "120.836783,40.710974"), //辽宁省
            CityBean("大连市", "121.614786,38.913962"),
            CityBean("丹东市", "124.354419,40.000646"),
            CityBean("锦州市", "121.126859,41.096114"),
            CityBean("沈阳市", "123.464675,41.677576"),
            CityBean("铁岭市", "123.726008,42.223709"),
            CityBean("阜新市", "121.670052,42.022028"),
            CityBean("本溪市", "123.684984,41.486834"),
            CityBean("辽阳市", "123.239669,41.267396"),
            CityBean("盘锦市", "122.170729,40.71956"),
            CityBean("抚顺市", "123.957053,41.881311"),
            CityBean("鞍山市", "122.994183,41.108239"),
            CityBean("营口市", "122.219148,40.625027"),
            CityBean("朝阳市", "120.488801,41.601855"),
            CityBean("烟台市", "121.447755,37.464551"), //山东省
            CityBean("威海市", "122.120519,37.513315"),
            CityBean("青岛市", "120.382665,36.066938"),
            CityBean("淄博市", "118.054994,36.813787"),
            CityBean("东营市", "118.674633,37.433992"),
            CityBean("滨州市", "117.970731,37.382687"),
            CityBean("日照市", "119.52685,35.416912"),
            CityBean("济南市", "117.120128,36.652069"),
            CityBean("聊城市", "115.985238,36.455857"),
            CityBean("德州市", "116.359244,37.436492"),
            CityBean("枣庄市", "117.323759,34.810858"),
            CityBean("济宁市", "116.587116,35.415117"),
            CityBean("菏泽市", "115.479646,35.234309"),
            CityBean("临沂市", "118.356464,35.103771"),
            CityBean("泰安市", "117.086963,36.201784"),
            CityBean("潍坊市", "119.161721,36.707668"),
            CityBean("商洛市", "109.918646,33.873358"), //陕西省
            CityBean("汉中市", "107.02319,33.066373"),
            CityBean("铜川市", "108.945116,34.897133"),
            CityBean("延安市", "109.49468,36.650109"),
            CityBean("西安市", "108.939645,34.343207"),
            CityBean("渭南市", "109.470962,34.520632"),
            CityBean("安康市", "109.029017,32.685435"),
            CityBean("榆林市", "109.734104,38.28576"),
            CityBean("咸阳市", "108.708837,34.329896"),
            CityBean("宝鸡市", "107.237682,34.362862"),
            CityBean("上海市", "121.473667,31.230525"), //上海市
            CityBean("遵义市", "107.031922,27.721931"), //贵州省
            CityBean("铜仁市", "109.189528,27.731555"),
            CityBean("六盘水市", "104.830357,26.592538"),
            CityBean("黔南布依族苗族自治州", "107.522303,26.253136"),
            CityBean("安顺市", "105.9476,26.253103"),
            CityBean("黔西南布依族苗族自治州", "104.906419,25.087733"),
            CityBean("黔东南苗族侗族自治州", "107.982838,26.583759"),
            CityBean("毕节市", "105.291544,27.283615"),
            CityBean("贵阳市", "106.628201,26.646694"),
            CityBean("重庆市", "106.550483,29.563707"), //重庆市
            CityBean("昌都市", "97.170425,31.142879"), //西藏自治区
            CityBean("那曲市", "92.05151,31.477905"),
            CityBean("拉萨市", "91.171924,29.653491"),
            CityBean("日喀则市", "88.880423,29.266838"),
            CityBean("山南市", "91.771426,29.237722"),
            CityBean("林芝市", "94.361436,29.64875"),
            CityBean("阿里地区", "80.105786,32.500987"),
            CityBean("阜阳市", "115.814252,32.891032"), //安徽省
            CityBean("铜陵市", "117.811298,30.945214"),
            CityBean("池州市", "117.495663,30.674264"),
            CityBean("黄山市", "118.337643,29.714886"),
            CityBean("安庆市", "117.115349,30.531828"),
            CityBean("蚌埠市", "117.388566,32.91682"),
            CityBean("淮北市", "116.798362,33.956264"),
            CityBean("滁州市", "118.333439,32.255904"),
            CityBean("马鞍山市", "118.50685,31.668765"),
            CityBean("芜湖市", "118.433065,31.352614"),
            CityBean("宣城市", "118.759127,30.939278"),
            CityBean("亳州市", "115.778588,33.846285"),
            CityBean("六安市", "116.519729,31.735892"),
            CityBean("宿州市", "116.96419,33.647726"),
            CityBean("合肥市", "117.227267,31.820567"),
            CityBean("淮南市", "117.018603,32.585384"),
            CityBean("宁德市", "119.547729,26.666222"), //福建省
            CityBean("福州市", "119.296411,26.074286"),
            CityBean("莆田市", "119.007662,25.454202"),
            CityBean("泉州市", "118.675724,24.874452"),
            CityBean("厦门市", "118.08891,24.479627"),
            CityBean("漳州市", "117.647298,24.515297"),
            CityBean("龙岩市", "117.017362,25.075884"),
            CityBean("南平市", "118.081325,27.382829"),
            CityBean("三明市", "117.638919,26.263455"),
            CityBean("岳阳市", "113.128922,29.35648"), //湖南省
            CityBean("张家界市", "110.478887,29.117343"),
            CityBean("怀化市", "110.001598,27.569813"),
            CityBean("湘西土家族苗族自治州", "109.737428,28.312592"),
            CityBean("常德市", "111.69905,29.031446"),
            CityBean("湘潭市", "112.945439,27.83136"),
            CityBean("郴州市", "113.015517,25.770117"),
            CityBean("益阳市", "112.355994,28.554853"),
            CityBean("娄底市", "111.994468,27.699838"),
            CityBean("永州市", "111.613482,26.419861"),
            CityBean("长沙市", "112.938882,28.228304"),
            CityBean("邵阳市", "111.467855,27.239528"),
            CityBean("株洲市", "113.132783,27.828862"),
            CityBean("衡阳市", "112.572016,26.894216"),
            CityBean("临高县", "109.690508,19.912025"), //海南省
            CityBean("定安县", "110.358001,19.681215"),
            CityBean("昌江黎族自治县", "109.055783,19.298139"),
            CityBean("琼海市", "110.474524,19.259112"),
            CityBean("乐东黎族自治县", "109.173384,18.750063"),
            CityBean("屯昌县", "110.101667,19.351662"),
            CityBean("陵水黎族自治县", "110.037553,18.506045"),
            CityBean("东方市", "108.651829,19.095187"),
            CityBean("万宁市", "110.392605,18.793697"),
            CityBean("白沙黎族自治县", "109.4429,19.221641"),
            CityBean("琼中黎族苗族自治县", "109.838423,19.03327"),
            CityBean("三沙市", "112.338649,16.831004"),
            CityBean("文昌市", "110.797473,19.544234"),
            CityBean("儋州市", "109.580812,19.520948"),
            CityBean("三亚市", "109.511709,18.252865"),
            CityBean("海口市", "110.198418,20.045805"),
            CityBean("五指山市", "109.516784,18.774827"),
            CityBean("保亭黎族苗族自治县", "109.700279,18.640339"),
            CityBean("澄迈县", "110.007497,19.738885"),
            CityBean("连云港市", "119.221487,34.596639"), //江苏省
            CityBean("南通市", "120.894522,31.981269"),
            CityBean("宿迁市", "118.275228,33.963186"),
            CityBean("淮安市", "119.113166,33.551495"),
            CityBean("扬州市", "119.412834,32.394404"),
            CityBean("镇江市", "119.424441,32.188141"),
            CityBean("南京市", "118.796624,32.059344"),
            CityBean("无锡市", "120.311889,31.491064"),
            CityBean("徐州市", "117.283752,34.204224"),
            CityBean("泰州市", "119.922883,32.456692"),
            CityBean("盐城市", "120.16263,33.348176"),
            CityBean("苏州市", "120.585294,31.299758"),
            CityBean("常州市", "119.974092,31.811313"),
            CityBean("海东市", "102.41064,36.473448"), //青海省
            CityBean("海南藏族自治州", "100.622647,36.296399"),
            CityBean("海西蒙古族藏族自治州", "97.33197,37.348114"),
            CityBean("玉树藏族自治州", "97.006292,33.006308"),
            CityBean("黄南藏族自治州", "102.015397,35.519317"),
            CityBean("果洛藏族自治州", "100.245161,34.472179"),
            CityBean("西宁市", "101.777795,36.616621"),
            CityBean("海北藏族自治州", "100.900944,36.954612"),
            CityBean("百色市", "106.61869,23.90307"), //广西壮族自治区
            CityBean("钦州市", "108.654355,21.980894"),
            CityBean("北海市", "109.120248,21.481305"),
            CityBean("柳州市", "109.428071,24.326442"),
            CityBean("梧州市", "111.279022,23.476733"),
            CityBean("崇左市", "107.364973,22.377139"),
            CityBean("防城港市", "108.35467,21.686732"),
            CityBean("玉林市", "110.18097,22.654001"),
            CityBean("南宁市", "108.366407,22.8177"),
            CityBean("来宾市", "109.221243,23.750105"),
            CityBean("桂林市", "110.179752,25.235615"),
            CityBean("河池市", "108.085244,24.692906"),
            CityBean("贵港市", "109.598903,23.11182"),
            CityBean("贺州市", "111.567216,24.404182"),
            CityBean("固原市", "106.24267,36.01628"), //宁夏回族自治区
            CityBean("石嘴山市", "106.382792,38.984632"),
            CityBean("吴忠市", "106.198613,37.997755"),
            CityBean("银川市", "106.230977,38.487783"),
            CityBean("中卫市", "105.19677,37.500185"),
            CityBean("舟山市", "122.207395,29.985578"), //浙江省
            CityBean("嘉兴市", "120.755623,30.746814"),
            CityBean("宁波市", "121.62454,29.860258"),
            CityBean("台州市", "121.42079,28.655716"),
            CityBean("温州市", "120.699279,27.993849"),
            CityBean("丽水市", "119.923249,28.467694"),
            CityBean("衢州市", "118.859307,28.970229"),
            CityBean("绍兴市", "120.582886,30.051549"),
            CityBean("湖州市", "120.086881,30.894178"),
            CityBean("金华市", "119.647265,29.079195"),
            CityBean("杭州市", "120.210792,30.246026"),
            CityBean("唐山市", "118.180149,39.63068"), //河北省
            CityBean("秦皇岛市", "119.52022,39.888243"),
            CityBean("廊坊市", "116.683546,39.538304"),
            CityBean("衡水市", "115.668987,37.739367"),
            CityBean("张家口市", "114.885895,40.768931"),
            CityBean("邯郸市", "114.53915,36.625849"),
            CityBean("沧州市", "116.838715,38.304676"),
            CityBean("保定市", "115.464523,38.874476"),
            CityBean("承德市", "117.962749,40.952942"),
            CityBean("石家庄市", "114.514976,38.042007"),
            CityBean("邢台市", "114.49742,37.060227"),
            CityBean("香港特别行政区", "114.171203,22.277468"), //香港特别行政区
            CityBean("澳门特别行政区", "113.543076,22.186927"), //澳门特别行政区
            CityBean("台湾省", "121.509062,25.044332"), //台湾省
            CityBean("嘉峪关市", "98.2882,39.77325"), //甘肃省
            CityBean("酒泉市", "98.49432,39.733416"),
            CityBean("金昌市", "102.187972,38.521468"),
            CityBean("兰州市", "103.834228,36.060798"),
            CityBean("平凉市", "106.664913,35.542417"),
            CityBean("张掖市", "100.449858,38.924766"),
            CityBean("庆阳市", "107.643433,35.709459"),
            CityBean("武威市", "102.637821,37.92898"),
            CityBean("陇南市", "104.960296,33.370174"),
            CityBean("定西市", "104.592342,35.607947"),
            CityBean("白银市", "104.138872,36.545123"),
            CityBean("临夏回族自治州", "103.210386,35.601792"),
            CityBean("天水市", "105.724828,34.581514"),
            CityBean("甘南藏族自治州", "102.911736,34.983266"),
            CityBean("广元市", "105.844004,32.435774"), //四川省
            CityBean("南充市", "106.110565,30.837235"),
            CityBean("巴中市", "106.747548,31.867853"),
            CityBean("德阳市", "104.397795,31.127449"),
            CityBean("绵阳市", "104.679127,31.467673"),
            CityBean("成都市", "104.066301,30.572961"),
            CityBean("广安市", "106.632647,30.456354"),
            CityBean("达州市", "107.46778,31.209278"),
            CityBean("遂宁市", "105.592602,30.53268"),
            CityBean("资阳市", "104.627265,30.129236"),
            CityBean("眉山市", "103.848417,30.077113"),
            CityBean("内江市", "105.057992,29.58021"),
            CityBean("乐山市", "103.766085,29.552275"),
            CityBean("自贡市", "104.779307,29.33924"),
            CityBean("泸州市", "105.441866,28.87098"),
            CityBean("宜宾市", "104.642826,28.752354"),
            CityBean("凉山彝族自治州", "102.267713,27.881396"),
            CityBean("攀枝花市", "101.71846,26.582417"),
            CityBean("甘孜藏族自治州", "101.96231,30.04952"),
            CityBean("雅安市", "103.041538,30.009998"),
            CityBean("阿坝藏族羌族自治州", "102.224504,31.899427"),
            CityBean("天津市", "117.201509,39.085318"), //天津市
            CityBean("萍乡市", "113.887147,27.658721"), //江西省
            CityBean("抚州市", "116.358054,27.948979"),
            CityBean("鹰潭市", "117.039532,28.272092"),
            CityBean("景德镇市", "117.184892,29.2744"),
            CityBean("上饶市", "117.943064,28.45513"),
            CityBean("新余市", "114.916665,27.818553"),
            CityBean("南昌市", "115.857972,28.682976"),
            CityBean("赣州市", "114.933494,25.831139"),
            CityBean("吉安市", "114.96681,27.091243"),
            CityBean("九江市", "115.95356,29.66116"),
            CityBean("宜春市", "114.416826,27.816245"),
            CityBean("昭通市", "103.717078,27.338185"), //云南省
            CityBean("曲靖市", "103.796288,25.490866"),
            CityBean("红河哈尼族彝族自治州", "103.374873,23.363129"),
            CityBean("怒江傈僳族自治州", "98.8566,25.817555"),
            CityBean("西双版纳傣族自治州", "100.797002,22.009037"),
            CityBean("玉溪市", "102.526673,24.346786"),
            CityBean("丽江市", "100.225936,26.855165"),
            CityBean("迪庆藏族自治州", "99.70211,27.819149"),
            CityBean("文山壮族苗族自治州", "104.21567,23.400983"),
            CityBean("保山市", "99.161489,25.112018"),
            CityBean("临沧市", "100.088837,23.884175"),
            CityBean("德宏傣族景颇族自治州", "98.585621,24.433146"),
            CityBean("昆明市", "102.833669,24.88149"),
            CityBean("楚雄彝族自治州", "101.528304,25.045678"),
            CityBean("大理白族自治州", "100.267608,25.606548"),
            CityBean("普洱市", "100.966011,22.825229"),
            CityBean("北京市", "116.407387,39.904179"), //北京市
            CityBean("阳泉市", "113.580426,37.857094"), //山西省
            CityBean("晋中市", "112.752633,37.688006"),
            CityBean("长治市", "113.117394,36.195142"),
            CityBean("朔州市", "112.432906,39.331734"),
            CityBean("大同市", "113.366749,40.09711"),
            CityBean("晋城市", "112.852022,35.491315"),
            CityBean("临汾市", "111.51931,36.088581"),
            CityBean("吕梁市", "111.14454,37.518996"),
            CityBean("太原市", "112.549656,37.870451"),
            CityBean("运城市", "111.007051,35.02667"),
            CityBean("忻州市", "112.734149,38.415958"),
            CityBean("吉林市", "126.549719,43.838132"), //吉林省
            CityBean("长春市", "125.323643,43.816996"),
            CityBean("四平市", "124.350599,43.166764"),
            CityBean("延边朝鲜族自治州", "129.470605,42.909426"),
            CityBean("白城市", "122.838102,45.620131"),
            CityBean("辽源市", "125.144676,42.887961"),
            CityBean("通化市", "125.939721,41.728312"),
            CityBean("松原市", "124.825321,45.14191"),
            CityBean("白山市", "126.414274,41.944132"),
        )
    }